﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace GestorDeFlotas.Core
{
    public class SqlUtils
    {
        public static SqlConnection GetConnection()
        {
            return new SqlConnection(Configuracion.GetConnectionString());
        }

        public static SqlCommand GetNewCommand(string sql)
        {
            return new SqlCommand
            {
                CommandType = CommandType.Text,
                CommandText = sql
            };
        }
    }
}
